/*
 * Copyright 2009 XueSong Guo.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cn.webwheel.template;

/**
 * 模板组件渲染异常的感知接口，当组件类实现此接口时，当渲染异常出现后便可以捕获之，
 * 否则将在{@link cn.webwheel.template.ComponentRenderer#render(java.io.Writer, Object, ComponentRenderer)}方法中抛出异常。
 */
public interface RenderExceptionAware {

    /**
     * 渲染出现异常的回调方法。
     * @param e 异常对象
     */
    void renderError(RenderException e);
}
